package utils
{
	 
	import flash.events.Event;
	
	import mx.collections.ArrayCollection;
	import mx.controls.Alert;
	
	public class DoSearchBarEvent extends Event 
	{ 
		
		 
	public var GameName:String=""; 
	public var ServerType:String="";
	public var Area:String="";
	public var Unit:String="";
	public var OrderState:int=0;
	public var Uptimedate:String="";
	public var Endtimedate:String="";
	
	public function DoSearchBarEvent(gameName:String,serverType:String,area:String,unit:String,orderState:int,uptimedate:String,endtimedate:String) 
	{ 
		super("DoSearchBar",false); 
		GameName= gameName; 
		ServerType =serverType; 
		Area =area;
		Unit =unit;
		OrderState =orderState;
		Uptimedate =uptimedate;
		Endtimedate =endtimedate;
	}

	
	public function Filter(list:ArrayCollection):ArrayCollection 
	{ 

		var newlist:ArrayCollection = new ArrayCollection(); 			
/* 		Alert.show(GameName+"-"+ServerType+"-"+Area+"-"+Unit+"-"+Uptimedate+"-"+Endtimedate);*/ 
 				
			
		return newlist; 

	} 
 }

}